package com.dyh.quickdemo.demos.lbdFactoryBean;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.FactoryBean;

import java.util.function.Function;

/*
@Author=Joey Wheeler
@Date=2021/1/11 14:16
*/
@Setter@Getter
public class FunctionFactoryBean implements FactoryBean<Function> {

    private FunctionEnhancer functionEnhancer;

    @Override
    public Function getObject() throws Exception {
        return functionEnhancer.build();
    }

    @Override
    public Class<?> getObjectType() {
        return Function.class;
    }
}
